package de.idgard.json.transport;

/**
 * 
 *
 * @author <a href="mailto:vesko.georgiev@uniscon.com">Vesko Georgiev</a>
 */
public class ResponseDescriptor {
	private int code;
	private String responseBody;
	private Exception exception;

	public ResponseDescriptor(int code, String responseBody) {
		this.code = code;
		this.responseBody = responseBody;
	}

	public ResponseDescriptor(Exception exception) {
		this.exception = exception;
		this.code = -1;
	}

	public int getCode() {
		return code;
	}

	public String getResponseBody() {
		return responseBody;
	}

	public Exception getException() {
		return exception;
	}

}